﻿using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using UnityEngine;
using UnityEngine.UI;

public class TemperatureEventListen : MonoBehaviour {

    [HideInInspector]
    public bool IsCarryOut = false;
    [HideInInspector]
    public Camera main_Camera;
	// Use this for initialization
	void Start () {
        main_Camera = this.gameObject.transform.parent.parent.parent.gameObject.GetComponent<Canvas>().worldCamera;
        Debug.LogError(main_Camera.name);
    }
    public void OnInputDown()
    {
        if (!IsCarryOut)
        {
            //this.gameObject.transform.localPosition = main_Camera.ScreenToWorldPoint(Input.mousePosition);
            //this.gameObject.transform.localPosition = new Vector3(this.gameObject.transform.localPosition.x * 9.5f, this.gameObject.transform.localPosition.y - 1000,0);
        }
        else
        {
            

        }
    }

    public void OnInputEnter()
    {
        Debug.LogError("-----------------------------------------------------IsEnter");
    }

    //IEnumerator
}
